home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / tabvie.zip / DRAWVIEW.H < prev    next >
C/C++ Source or Header  |  1994-04-13  |  2KB  |  57 lines

  1. // drawview.h : interface of the CDrawView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #ifndef TABVIEW_H
  5. #include "tabview.h"
  6. #endif
  7. class CDrawView : public CScrollView
  8. {
  9. protected: // create from serialization only
  10.     CDrawView();
  11.     DECLARE_DYNCREATE(CDrawView)
  12.     void    drawButton(CDC* pDC,CRect rect, char* label);
  13.  
  14. // Attributes
  15. public:
  16.     CTabDoc* GetDocument();
  17.     CTabView* m_pTabView;
  18.  
  19. // Operations
  20. public:
  21.  
  22. // Implementation
  23. public:
  24.     virtual ~CDrawView();
  25.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  26.     virtual void OnInitialUpdate();
  27. #ifdef _DEBUG
  28.     virtual void AssertValid() const;
  29.     virtual void Dump(CDumpContext& dc) const;
  30. #endif
  31.  
  32.     // Printing support
  33. protected:
  34.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  35.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  36.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  37.  
  38. // Generated message map functions
  39. protected:
  40.     //{{AFX_MSG(CDrawView)
  41.     afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  42.     afx_msg void OnLookChicago();
  43.     afx_msg void OnLookMsword();
  44.     afx_msg void OnSysCommand(UINT nChar,LONG lParam);
  45.     afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  46.     afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  47.     //}}AFX_MSG
  48.     DECLARE_MESSAGE_MAP()
  49. };
  50.  
  51. #ifndef _DEBUG    // debug version in demoview.cpp
  52. inline CTabDoc* CDrawView::GetDocument()
  53.    { return (CTabDoc*) m_pDocument; }
  54. #endif
  55.  
  56. /////////////////////////////////////////////////////////////////////////////
  57.